package com.tansun.easycare.modules.rulenamalist.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.core.persistence.DataEntity;

/**
 * 名单配置Entity
 * @author lph
 * @version 2019-06-18
 */
public class RuleNamelist extends DataEntity<RuleNamelist> {
	
	private static final long serialVersionUID = 1L;
	private String type;		// 证件类型 0 身份证 1 港澳台  2 军官证
	private String custname;		// 客户名称
	private String custid;		// 证件编号
	private String nametype; //名单类型    0黑名单  1 白名单  2灰名单
	
	public RuleNamelist() {
		super();
	}

	public RuleNamelist(String id){
		super(id);
	}

	@Length(min=0, max=16, message="证件类型长度必须介于 0 和 16 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=32, message="客户名称长度必须介于 0 和 32 之间")
	public String getCustname() {
		return custname;
	}

	public void setCustname(String custname) {
		this.custname = custname;
	}
	
	@Length(min=0, max=64, message="证件编号长度必须介于 0 和 64 之间")
	public String getCustid() {
		return custid;
	}

	public void setCustid(String custid) {
		this.custid = custid;
	}

	public String getNametype() {
		return nametype;
	}

	public void setNametype(String nametype) {
		this.nametype = nametype;
	}
}